package Lagou;

public class Wuziqi {

    public static void main(String[] args) throws InterruptedException {

        //拆分，先使用数组完成第一排的打印，字母部分利用char调用ASCII码完成
        char[] Qi = {48, 49, 50, 51, 52, 53, 97, 98, 99, 100, 101};

        for (int i = 1; i < Qi.length; i++) {
            System.out.print ("   "  + Qi[i]);
        }
        System.out.println ();
        Thread.sleep (1000);
        for (int a = 1; a <= 10; a++) {
            System.out.print (Qi[a]);//利用上面创建的数组Qi，单独打印每一行首个字符
            Thread.sleep (100);

            for (int b = 1; b <= 10; b++) {

                System.out.print (" " + "-+-");
                Thread.sleep (100);//双重for循环打印十列棋盘方格
            }

            System.out.println ();
        }

    }
}
